/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import core.User;
import javax.annotation.PostConstruct;

/**
 *
 * @author Wizz
 */
public class SessionBean {

    private User currentUser = null;

    @PostConstruct
    public void init()
    {
        this.currentUser = null;
    }

    public User getCurrentUser()
    {
        return currentUser;
    }

    public void setCurrentUser(User currentUser)
    {
        this.currentUser = currentUser;
    }

    public boolean getAdminUser()
    {
        return currentUser.getLevel() == User.adminUser;
    }

    public boolean getStandardUser()
    {
        return currentUser.getLevel() == User.standardUser;
    }

}
